package org.classg.statistics.client;

import org.classg.statistics.client.impl.UcenterClientImpl;
import org.classg.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@Component
@FeignClient(value = "service-ucenter", fallback = UcenterClientImpl.class)
public interface UcenterClient {

    // 根据天数查询注册人数
    @GetMapping("/ucenterservice/member/queryRegisterCountByDay/{day}")
    R queryRegisterCountByDay(@PathVariable("day") String day);

}
